package com.example.it_com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data//得到数据getset
@NoArgsConstructor//无参构造
@AllArgsConstructor//全参构造
public class Announcement {
    private Integer announceId;
    private String aTitle;
    private String aContent;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime aCreatedat;
    private Integer userId;


}
